#include "dkgl.h"
using namespace DKGL;

#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")

#ifdef _DEBUG
	#pragma comment(lib, "dkgl_d.lib")
#else
	#pragma comment(lib, "dkgl.lib")
#endif

int main()
{
	new Log();
	g_Log.clear();
	BaseObject *a = NULL, *b = NULL, *c = NULL;
	BaseObject e("e"), d("d");
	Ball f("f ball");

	a = new Ball("ball");
	//b = new BaseObject("b");
	c = new BaseObject("c");

	a->pushChild(new BaseObject("b"));
	b = a->popChild("b");
	b->pushChild(c);
	c->pushChild(&d);
	d.pushChild(&e);
	e.pushChild(&f);

	
	delete a;
	delete b;
	//delete c;
	//delete b;


	return 1;
}